package com.lagou.model;

import java.util.List;

/**

 * TODO: 实现封装用户信息

 */
public class User implements java.io.Serializable{
    private static final long serialVersionUID = 5057780361259195437L;

    /**
     * 用于描述用户名信息
     */
    private String userName;
    /**
     * 用于描述密码信息
     */
    private String password;
    /**
     * 每次考试的成绩
     */
    private Store store;
    /**
     * 所有考试成绩
     */
    private List<Store> storeList;

    public User() {
    }

    public User(String userName) {
        this.userName = userName;
    }

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Store getStore() {
        return store;
    }

    public void setStore(Store store) {
        this.store = store;
    }

    public List<Store> getStoreList() {
        return storeList;
    }

    public void setStoreList(List<Store> storeList) {
        this.storeList = storeList;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String show() {
        return "账号：" + userName + ", 密码：" + password;
    }
}
